# Contributor: Firmicus <francois.archlinux.org>  

pkgname=perl-text-diff
pkgver=1.45
pkgrel=2
pkgdesc="Perform diffs on files and record sets "
arch=('any')
url="https://search.cpan.org/dist/Text-Diff"
license=('GPL' 'PerlArtistic')
depends=('perl-algorithm-diff>=1.1900')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/N/NE/NEILB/Text-Diff-$pkgver.tar.gz)
sha256sums=('e8baa07b1b3f53e00af3636898bbf73aec9a0ff38f94536ede1dbe96ef086f04')

build() {
  cd "$srcdir"/Text-Diff-${pkgver}
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor  
  make 
}
package() {
  cd "$srcdir"/Text-Diff-${pkgver}
  make install DESTDIR="$pkgdir" 
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
